package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.JjzApplyLog;
import com.ruoyi.system.service.IJjzApplyLogService;
import com.ruoyi.system.service.IJjzApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2024-05-29
 */
@RestController
@RequestMapping("/JjzApplylog")
public class JjzApplyLogController extends BaseController
{
    @Autowired
    private IJjzApplyService jjzApplyService;

    @Autowired
    private IJjzApplyLogService jjzApplyLogService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public TableDataInfo list(JjzApplyLog jjzApplyLog)
    {
        startPage();
        List<JjzApplyLog> list = jjzApplyLogService.list(jjzApplyLog);
        return getDataTable(list);
    }


    /**
     * 获取【请填写功能名称】详细信息
     */

    @GetMapping(value = "/doApply")
    public AjaxResult doApply(@RequestParam("id") Long id,@RequestParam("date") String date)
    {
        jjzApplyService.doApply(id,date);
        return success();
    }
}
